﻿<%@ Page Title="Hỏi đáp" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="QnA.aspx.cs" Inherits="Transport.QnA" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
    $(document).ready(function () {
        $("#form1").validate({
            errorElement: "span", //Thành phần HTML hiện thông báo lỗi
            rules: {
                password2: {
                    equalTo: "#password1" //So sánh với trường cpassword với thành trường có id là password
                },
                min_field: { min: 5 }, //Giá trị tối thiểu
                max_field: { max: 11 }, //Giá trị tối đa
                range_field: { range: [4, 10] }, //Giá trị trong khoảng từ 4 - 10
                rangelength_field: { rangelength: [4, 10]} //Chiều dài chuỗi trong khoảng từ 4 - 10 ký tự
            }
        });
    });

        </script>
<div class="wrapper order">
        <div class="ordtr">
			 Hỏi đáp
        </div>
        <div class="main_category_wrapper min">
			<a href="Hirecars.aspx">&lt; Trở về thuê xe</a>
			<br /><br />
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="PanelHoiDap" runat="server" DefaultButton="btn_Submit">
    <table class="form" width="643px">
                <tbody>
                    <tr>
                        <td>
                            <span>*</span> Họ tên:
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Name" class="required" runat="server" Width="200px" /><br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>*</span>  Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txt_Email" class="required" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>*</span> Loại:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddl_Type" runat="server" 
                    DataSourceID="EntityDataSource_Type" DataTextField="ten_loai" 
                    DataValueField="ma_loai">
                </asp:DropDownList>
                <asp:EntityDataSource ID="EntityDataSource_Type" runat="server" 
                    ConnectionString="name=transportEntities" 
                    DefaultContainerName="transportEntities" EnableFlattening="False" 
                    EntitySetName="loai_thac_mac" EntityTypeFilter="loai_thac_mac">
                </asp:EntityDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>*</span>  Nội dung:
                        </td>
                        <td>
                            <asp:TextBox ID="txt_NoiDung" class="required" runat="server" TextMode="MultiLine" Rows="10" Width="400px" />
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                           
                        </td>
                        <td>
                            <asp:Button ID="btn_Submit" class="readmore" runat="server" Text="Gửi"
                    ValidationGroup="save" onclick="btn_Submit_Click" />
                        </td>
                    </tr>
                </tbody>
            </table>
          <asp:Label ID="lbThongBao" runat="server" ForeColor="#FF3300"></asp:Label>
        </asp:Panel>
    </div>
    </form>
        </div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
